package com.xxl.rpc.core.util;

/**
 * @author xuxueli 2018-10-20 23:00:40
 */
public class XxlRpcException extends RuntimeException {
    private static final long serialVersionUID = 42L;

    // ---------------------- start: add by zhanpu ----------------------

    private int status = 500;
    private String returnCode = "SYSTEM_ERROR";

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }

    public XxlRpcException(int status, String returnCode, String msg) {
        super(msg);
        this.status = status;
        this.returnCode = returnCode;
    }

    // ---------------------- end: add by zhanpu ----------------------

    public XxlRpcException(String msg) {
        super(msg);
    }

    public XxlRpcException(String msg, Throwable cause) {
        super(msg, cause);
    }

    public XxlRpcException(Throwable cause) {
        super(cause);
    }

}